const TIME_OUT = 10000;
let BASE_URL = '';
const DEFAULT_LOADING = true;

if (process.env.NODE_ENV === 'development') {
  // BASE_URL = 'http://localhost:3001/';
  // BASE_URL = 'http://152.136.185.210:4000/';
  BASE_URL = '/api';
} else if (process.env.NODE_ENV === 'production') {
  // BASE_URL = 'http://localhost:8080/';
  BASE_URL = 'http://152.136.185.210:4000/';
} else {
  BASE_URL = 'http://152.136.185.210:4000/';
}

const obj = {
  TIME_OUT,
  BASE_URL,
  DEFAULT_LOADING
};

export default obj;
